package com.qijian.business.domain.vo.listVo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("t")
@JsonInclude
public class ContractSalesDetailLogisticsVo {

    @WhereType(filed = "customer_name", type = WhereTypeEnum.LIKE)
    private String customerName;
    @WhereType(filed = "project_no", type = WhereTypeEnum.LIKE)
    private String projectNo;
    @WhereType(filed = "item_name", type = WhereTypeEnum.LIKE)
    private String itemName;
    private String imageUrl;
    private BigDecimal quantity;
    private BigDecimal completionQuantity;
    private BigDecimal timelyDeliveryRate;

    private BigDecimal budgetCost;
    private BigDecimal deliveryCost;
    private BigDecimal successRate;

    @WhereType(fields={"t.customer_name","t.project_no","t.item_name"},type = WhereTypeEnum.LIKE)
    private String condition;

    private String projectManager;

    private String projectManagerUrl;

    @ApiModelProperty(value = "是否存在物流比价")
    private Boolean isExistComparison;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long itemId;

    private BigDecimal amount;

    private String isUp;

    @WhereType(ignore = true)
    private Integer timelyRateDays;
}
